<template>
  <div>
    <div class="" v-if="isShow">232323</div>
    {{ isShow1 }}-{{ isShow2 }}
    <div class="box">
      <div class="child child-1" @click="handle(1)">1
        <div class="child child-2" @click="handle(2)">2
          <div class="child child-3" @click="handle(3)">3</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {},
  data() {
    return {
      list: [
        1,2,3,4
      ],
      isShow1:false,
      isShow2:false,
    };
  },
  computed: {
    isShow() {
      return this.isShow1&&this.isShow2
    }
  },
  mounted() {
  },
  methods: {
    handle(type) {
      console.log(type);
      if (type == 1) {
          this.isShow1=true
        }
      if (type == 2) {
          this.isShow2=true
        }
    }
  },
};
</script>

<style lang="scss" scoped>
 .box{
  margin-top: 40px;
  position: relative;
  .child{
    border:4px solid rgb(200, 255, 0);
    border-radius: 100%;
    width: 20px;
    height: 20px;
    background-color: #66e887;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px;
    position: absolute;
    top:40px;
    &-1{
      left:0;
    }
    &-2{
      left:-24px
    }
    &-3{
      left:-24px
    }
  }
 }
</style>
